package com.feihao.zhou.demoAnnoExtends;

public class TestAnnoExtends {


    public static void main(String[] args) throws ClassNotFoundException {

        //获取子类的类对象！
        Class<?> aClass = Class.forName("com.feihao.zhou.demoAnnoExtends.Zi");


        //判断类上面是否有Test注解！！
        boolean annotationPresent = aClass.isAnnotationPresent(Test.class);
        System.out.println(annotationPresent);
    }
}
